package com.gms.service.usermanager;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gms.entity.user.User;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserService extends IService<User> {
    public User checkForDuplication(String aNumber);
    public User login(String aNumber, String passWord);
    public void register(User user);
    public List<User> getAllUser();
    public void update_password(User user);
    public void updateUser(User user);
    public void transfer(User user1,User user2);
    Page<User> query_users(String number, String username, String academy,String permission,Integer PageNum);
    Page<User> query_admins(String number, String username, String role,String permission,Integer PageNum);
    User select_one(Integer userid);
    Page<User> selectPage(int pageNumber, int permission,int permission_two);
    Page<User> selectPage(int pageNumber, int size,int permission,int permission_two);
}
